package com.kodcu.web.book.content;

import org.apache.wicket.Page;
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.panel.Panel;

import com.kodcu.web.book.BookMainPage;

public class KitapMainPanel extends Panel{
	
	
	private static final long serialVersionUID = 1L;

	public KitapMainPanel(String id, PageParameters params) {
		super(id);
		
		PageParameters paramsForBookmark = new PageParameters();
		paramsForBookmark.add("0", "java-kitap-pdf-indir");
		BookmarkablePageLink<Page> pdfIndir = new BookmarkablePageLink<Page>("PDFIndir", BookMainPage.class, paramsForBookmark);
		add(pdfIndir);
		
		PageParameters paramsForJavaKitap = new PageParameters();
		paramsForJavaKitap.add("0", "java-kitap-slayt-kaynak-kod");
		BookmarkablePageLink<Page> javaKitap = new BookmarkablePageLink<Page>("JavaKitap", BookMainPage.class, paramsForJavaKitap);
		add(javaKitap);
		
		
	}

}
